package com.rerun.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.rerun.entity.WatchedJob;
import com.rerun.vo.park.ParkResumeViewVo;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Watched job mapper.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /10/11 10:25
 */
public interface WatchedJobMapper extends BaseMapper<WatchedJob> {

    /**
     * 我查看过的职位 取最新不重复5条.
     *
     * @param memberId the memeber id
     * @return the string [ ]
     */
    List<String> selectJobIds(String memberId);

    /**
     * Select by member id and job id watched job.
     *
     * @param memberId the member id
     * @param jobId    the job id
     * @return the watched job
     */
    WatchedJob   selectByMemberIdAndJobId(@Param("memberId") String memberId, @Param("jobId") String jobId);
    
    List<ParkResumeViewVo> selectParkWatchListPage(Page<ParkResumeViewVo> page, @Param(value="parkId") String parkId);
}
